﻿using System;
using ggHD.Domain.Repisitories;
using LinqToDB.Mapping;

namespace ggHD.Domain.BizObj
{
    [Table(Schema = "dbo", Name = "ExternalInitiators")]
    public class ExternalInitiator : IEntity<int>
    {
        [Identity]
        public int Id { get; set; } // int
        [Column, NotNull]
        public string FromAddress { get; set; } // nvarchar(256)
        [Column, Nullable]
        public string FromDisplayText { get; set; } // nvarchar(256)
        [Column, Nullable]
        public DateTime? Added { get; set; } // datetime

        [Column("Id"), Identity]
        public int Key { get; private set; }
    }
}